package viroyal.com.base.adapter;

import com.chad.library.adapter.base.BaseItemDraggableAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import viroyal.com.base.R;
import viroyal.com.base.net.entity.Timetables;

/**
 * @author chenjunwei
 * @desc 周表
 * @date 2019/4/29
 */
public class ItemLessonAdapter extends BaseItemDraggableAdapter<Timetables> {
  public ItemLessonAdapter(List data) {
    super(R.layout.item_lesson, data);
  }

  @Override
  protected void convert(BaseViewHolder helper, Timetables item) {
    helper.setText(R.id.lesson_name, item.name + "");
  }
}
